<?php
defined('SYSPATH') or die('No direct script access');

class Controller_Questions extends Controller {
	public function action_index() {
		View::set_global('x', 'This is a global variable');
		$questions['content'] = 'We have data';
		$questions_inner['content'] = 'We have more data';

		$questions['questions_inner'] = View::factory('blocks/questions_inner', $questions_inner)->render();

		$view = View::factory('pages/questions', $questions);
		$this->response->body($view->render());
	}

	public function action_other() {
		$this->response->body("It's another action");
	}

	public function action_says($said) {
		$this->response->body("You said ".$said);
	}
}